#include <QDialog>
#include <QVBoxLayout>
#include <QFormLayout>
#include <QLineEdit>
#include <QTextEdit>
#include <QDialogButtonBox>
#include <QSqlRecord>  // 修复QSqlRecord类型未声明错误

class EditUserDialog : public QDialog {
    Q_OBJECT
public:
    explicit EditUserDialog(const QSqlRecord& record, QWidget* parent = nullptr);
    
    QVariantMap getNewData() const;
    QString getChangeReason() const;

private:
    QLineEdit* m_usernameEdit;
    QLineEdit* m_roleEdit;
    QTextEdit* m_reasonEdit;
};